import request from "@/utils/request.js"

export const addTeam = (data) => {
  return request.post("user/team", data)
}

export const queryUserTeam = (data) => {
  return request.get("user/team/" + data)
}

export const queryUserCreatedTeam = (data) => {
  return request.get("user/team/created/" + data)
}

export const queryTeamDetail = (data) => {
  return request.get("user/team/info/" + data)
}

export const queryTeamByTags = (data) => {
  return request.post("user/team/tag/search", data)
}

export const userJoinTeam = (data) => {
  return request.post("user/team/join", data)
}
